﻿using Microsoft.AspNetCore.Razor.TagHelpers;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace MvcSample.TagHelpers
{
    public class BoldTagHelper
        :TagHelper
    {
        public override async Task ProcessAsync(TagHelperContext context, TagHelperOutput output)
        {
            var tagContent =await output.GetChildContentAsync();
            var content = tagContent.GetContent();

            output.TagName = "strong";
            output.Content.SetContent(content);
        }
    }
}
